import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { DialogProvider } from '../../providers/dialog/dialog';

/*
  Generated class for the UserInfoProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class UserInfoProvider {
  public userInfo: user_info;

  getuserInfo(): user_info{
    return this.userInfo;
  }

  setuserInfo(userInfo: user_info) {
    // this.dialog.showAlert('userInfo', JSON.stringify(userInfo));		
    this.userInfo = userInfo;
  }

  constructor(
    public http: HttpClient,
    public dialog: DialogProvider,
  ) {
    console.log('Hello UserInfoProvider Provider');
  }

}

export class user_info {
  member_id: any;
  nickname: any;
  phone: any;
  balance: any;
  local_balance: any;
  member_state: any;
  created_at: any;
  updated_at: any;
  cuser_id: any;
  uuser_id: any;
  is_del: any;
  password: any;
  file_type_id: any;
  access_token: any;
  isAutomaticLogon: any;
}